package com.programming.forum.utils;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22479
 * Date: 2023-11-05
 * Time: 18:54
 */

import java.util.UUID;

/**
 * 生成随机字符串
 */
public class UUIDUtil {

    /**
     * 生成36位的UUID
     * @return
     */
    public static  String UUID_36() {
        return UUID.randomUUID().toString();
    }



    /**
     * 生成32位的UUID
     * @return
     */
    public static  String UUID_32() {
        return UUID.randomUUID().toString().replace("_","");
    }

}
